package com.uniledger.exchange.mine;

import com.uniledger.exchange.R;

public class MyCenter {

    public static final int TYPE_ME_USER = 0;
    public static final int TYPE_ME_SCHEME = 1;
    public static final int TYPE_ME_LINE = 2;

    @Override
    public String toString() {
        return "MyCenter{" +
                "name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", icon='" + icon + '\'' +
                ", type=" + type +
                '}';
    }

    public String name;
    public String tel;
    public String avatar;
    public int icon;
    public int type;
    public int arrow;

    public MyCenter() {
        this.type = TYPE_ME_LINE;
    }

    public MyCenter(String name, int icon, int type) {
        this.name = name;
        this.icon = icon;
        this.type = type;
        this.arrow = R.drawable.ic_mine_arrow;
    }

    public MyCenter(String name, int icon) {
        this.name = name;
        this.icon = icon;
        this.type = TYPE_ME_SCHEME;
        this.arrow = R.drawable.ic_mine_arrow;

    }

    /**
     * 初始化用户信息
     * @param name
     * @param tel
     * @param icon
     */
    public MyCenter(String name, String tel, int icon) {
        this.name = name;
        this.tel = tel;
        this.icon = icon;
        this.type = TYPE_ME_USER;
        this.arrow = R.drawable.ic_mine_arrow;

    }
}
